#ifndef WORKER_H_
#define WORKER_H_

#include "person.h"
#include <iostream>

class worker : public person 
{
public:
    //构造函数
    worker(int id,string name,int post)
    {
        this->id=id;
        this->name=name;
        this->post=post;
    }

    //显示职工信息
    virtual void ShowInfo(void);
};

#endif